﻿package com.taihua_tech.basic.controller.share;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taihua_tech.basic.service.ShareService;
import com.taihua_tech.basic.util.NoteResult;
@Controller
@RequestMapping("/share")
public class ShareNoteController {
	@Resource
	private ShareService shareService;
	@RequestMapping("/share.do")
	@ResponseBody
	public NoteResult execute(String noteId){
		NoteResult result = 
			shareService.shareNote(noteId);
		return result;
	}
	
}
